![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
phosphor-tabs
Advanced tools
Phosphor widgets for creating tab bars and tab panels.
Prerequisites
npm install --save phosphor-tabs
Prerequisites
git clone https://github.com/phosphorjs/phosphor-tabs.git
cd phosphor-tabs
npm install
Rebuild
npm run clean
npm run build
Follow the source build instructions first.
# run tests in Firefox
npm test
# run tests in Chrome
npm run test:chrome
# run tests in IE
npm run test:ie
Follow the source build instructions first.
npm run docs
Navigate to docs/index.html
.
Follow the source build instructions first.
npm run build:example
Navigate to example/index.html
.
The runtime versions which are currently known to work are listed below. Earlier versions may also work, but come with no guarantees.
Follow the package install instructions first.
npm install --save-dev browserify browserify-css
browserify myapp.js -o mybundle.js
Note: This module is fully compatible with Node/Babel/ES6/ES5. Simply omit the type declarations when using a language other than TypeScript.
import {
TabPanel
} from 'phosphor-tabs';
import {
Widget
} from 'phosphor-widget';
function main(): void {
let one = new Widget();
one.title.text = 'One';
let two = new Widget();
two.title.text = 'Two';
let three = new Widget();
three.title.text = 'Three';
// Note: A `TabBar` can also be used independently of a `TabPanel`.
let panel = new TabPanel();
panel.tabsMovable = true;
panel.addChild(one);
panel.addChild(two);
panel.addChild(three);
panel.attach(document.body);
window.onresize = () => { panel.update(); };
}
FAQs
Phosphor widgets for creating tab bars and tab panels.
The npm package phosphor-tabs receives a total of 17 weekly downloads. As such, phosphor-tabs popularity was classified as not popular.
We found that phosphor-tabs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.